import axios from '../utils/request';

// 获取文章列表
const getArticleList = function (data) {
    return axios.get('/api/get/article',{params:data})
}
// 获取文章详情
const getArticleDetail = function (id) {
    return axios.get('/api/article/detail/'+id)
}
// 更新文章点赞
const likeArticle = function (data) {
    return axios.get('/api/like/article',{params:data})
}
export default {
    getArticleList,
    getArticleDetail,
    likeArticle
}